using System.Collections.Generic;
using System.ComponentModel.Composition;

namespace OrbitOne.CRMLyncInfoDashboard.CRM.OData
{
    [Export(typeof(ICrmDataProviderFactory))]
    public class CrmDataProviderFactory : ICrmDataProviderFactory
    {
        public IEnumerable<ICrmDataProvider> CrmDataProviders { get; private set; }
        
        [ImportingConstructor]
        public CrmDataProviderFactory([ImportMany] IEnumerable<ICrmDataProvider> dataProviders)
        {
            CrmDataProviders = dataProviders;
        }
    }
}